package cn.exlu.coco.core.tools;

public class CocoStringBuilder {
	private StringBuilder sb;
	
	public CocoStringBuilder(StringBuilder sb) {
		this.sb = sb;
	}
	
	public CocoStringBuilder append(String str) {
		if(str == null) {
			return this;
		}
		this.sb.append(str);
		return this;
	}
	
	public CocoStringBuilder append(Object obj) {
		if(obj == null) {
			return this;
		}
		this.sb.append(obj);
		return this;
	}
	
	@Override
	public String toString() {
		return this.sb.toString();
	}
	
	
}
